<?php
//conditional includes
if(SESSION_TYPE=='files'){
	$pj_sess_save_path = SESSION_DIR;
	require_once(INC_PATH.'3dparty/files_session.php');
}
if(SESSION_TYPE!='database'){
	session_start();
}

//errors
require_once(CORE_PATH.'error_manager.php');
require_once(CORE_PATH.'misc_functions.php');
$err_manager = new ErrorManager(ERR_TPL_DIR);

//application
require_once(CORE_PATH.'profiler.php');
require_once(CORE_PATH.'application.php');
require_once(CORE_PATH.'module.php');
require_once(CORE_PATH.'controller.php');
$app = new Application($err_manager, $_GET['REQUEST']);
?>